package liu.de.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author liude
 */
@Configuration
public class ObjectMapperConfig {

    @Bean
    public ObjectMapper objectMapper() {
        ObjectMapper objectMapper = new ObjectMapper()
                .findAndRegisterModules();
        return objectMapper
//                .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
//                .setDateFormat(new StdDateFormat())
                ;
    }
}
